<template>
  <KView class="bargain-record-item clearfix">
    <KView class="bargain-record-item-pic">
      <sys-avatar :url="record.url" shape="circle"></sys-avatar>
    </KView>
    <KView class="bargain-record-item-data">
      <KView class="bargain-record-item-name ellipsis">{{record.userName}}</KView>
      <KView class="bargain-record-item-price">狂砍了一刀，砍掉{{record.price}}元</KView>
    </KView>
  </KView>
</template>

<script>
  import SysAvatar from 'common/sysAvatar';

  export default {
    props: {
      record: {
        type: Object,
        required: true
      }
    },

    data() {
      return {};
    },

    components: {
      SysAvatar
    }
  };

</script>

<style lang="scss">
  .bargain-record-item {
    height: formatPx(92);

    >div {
      float: left;
      height: 100%;
    }

    .bargain-record-item-pic {
      width: formatPx(92);
      margin-right: formatPx(10);
    }

    .bargain-record-item-data {
      width: calc(100% - #{formatPx(102)});

      .bargain-record-item-name {
        font-size: formatPx(28);
      }

      .bargain-record-item-price {
        margin-top: formatPx(8);
        font-size: formatPx(26);
        color: #666666;
      }
    }
  }

</style>
